package com.station.utils;

public class PayConstant {

	/** [全局配置] **/
	//public final static String SYSTEM_API_CALL_URL = "http://127.0.0.1/open/system/api";			// 系统内部API接口

	/** [访问限制] **/
	//public final static String SYSTEM_IP_ALLOW = "192.168.1.21,127.0.0.1"; // IP白名单
    //public final static String SYSTEM_IP_DENY = "";		// IP黑名单
    public final static String LOCAL_IP = "127.0.0.1";
    public final static String PUBLIC_IP = "183.47.50.74";											// 请求的公网IP(支付系统外网IP)

    /** 交易成功返回码 **/
    public final static String SUCCESS = "SUCCESS";  // 00 or SUCCESS

    /** 推送接收成功 应答 **/
    public final static String ECHO = "success";  // 异步通知回应信息

	/** 签名验证公Key **/
	public final static String PUBLIC_KEY = "Mzh3QWhnbWdva3hlejdneno2MktBVERjMllYRVZWNnY=";

    /** 轮询池(列表)存活时间  分钟 **/
    public final static int PAYING_TO_LIVE_MINUTE = 5;      // 支付中
    public final static int REFUNDING_TO_LIVE_MINUTE = 30;  // 退款中

    /** 推送池(列表)存活推送次数 **/
    public final static int PUSH_TO_LIVE_NUMBER = 5;

    /** 推送(首次) 执行数 **/
    public final static int PUSH_NUMBER = 3;
    public final static long PUSH_INTERVAL_SECONDS = 3L;      // 间隔秒数

    /** Redis key **/
    public final static String POLLING_PAYING_ORDER_KEY = "polling_paying_order";
    public final static String POLLING_REFUNDING_ORDER_KEY = "polling_refunding_order";
    public final static String MONITOR_GATEWAY_KEY = "monitor_gateway";
    public final static String MONITOR_PAYMENT_KEY = "monitor_payment";
    public final static String PUSH_PAYMENT_RESULT_KEY = "push_payment_result";

    public final static String ROUTE_KEY = "route";
    public final static String CHANNEL_KEY = "channel";

}
